package tt.dz.egobus.servicemanager.business.distance;

import tt.dz.egobus.servicemanager.business.point.DriverPointContext;

/**
 * @author Anson
 * @date 17-3-29
 * @name 默认直接返回客户端计算结果
 * @since 1.0.3
 */
public class DefaultTransferPointValidation implements TransferPointValidation {

    public static final String ID = "default";
    private DriverPointContext pointContext;

    @Override
    public String id() {
        return ID;
    }

    @Override
    public void setPointContext(DriverPointContext pointContext) {
        this.pointContext = pointContext;
    }

    @Override
    public double validate(String driverId, double thirdDistance, double customerDistance) {
        return customerDistance;
    }
}
